#include "at_obj.h"
/**
* @brief AT适配器
*/
static const at_adapter_t at_adapter = {
.lock = NULL, //多任务上锁(非OS下填NULL)
.unlock = NULL, //多任务解锁(非OS下填NULL)
.write = at_device_write, //数据写接口
.read = at_device_read, //数据读接口)
.debug = at_debug, //调试打印接口
.recv_bufsize = 256, //接收缓冲区大小
.urc_bufsize = 512
};
at_obj_t *at_obj;

void at_obj_init()
{

    at_obj = at_obj_create(&at_adapter);
    if (at_obj == NULL)
    {
        printf("at object create failed\r\n");
    }
}
